package org.example.chat.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.lang.Long;
import java.sql.Timestamp;
import java.lang.String;
import java.lang.Integer;

/**
 * 好友关系表 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Data
@Table(value = "chat_friend", dataSource = "chatDS")
public class ChatFriendEntity {

    /**
     * 关系ID（自增主键）
     */
    @Id(keyType = KeyType.Auto)
    private Long relationId;

    /**
     * 请求方用户ID
     */
    @Column(value = "requester_id")
    private Long requesterId;

    /**
     * 接收方用户ID
     */
    @Column(value = "receiver_id")
    private Long receiverId;

    /**
     * 状态：0-待确认, 1-已同意, 2-已拒绝, 3-已拉黑
     */
    @Column(value = "status")
    private Integer status;

    /**
     * 好友备注
     */
    @Column(value = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @Column(value = "created_at")
    private Timestamp createdAt;

    /**
     * 更新时间
     */
    @Column(value = "updated_at")
    private Timestamp updatedAt;



}
